/* 全局样式优化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #42b983;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
}

.btn:hover {
  background-color: #359c6d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .profile {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-info {
    margin-top: 20px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .nav-logo {
    margin-bottom: 10px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .featured-works,
  .about {
    padding: 0 15px;
  }
  
  .featured-works h2,
  .about h2 {
    font-size: 1.5rem;
  }
}